//
//  VideoCell.m
//  MaxMovie
//
//  Created by Maxdong on 14-12-24.
//  Copyright (c) 2014年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "VideoCell.h"

@implementation VideoCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self setCell];
    }
    return self;
}


-(void)setCell
{
    UIImageView *tmpImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 120, 70)];
    //    tmpImageView.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:tmpImageView];
    [tmpImageView release];
    self.myImageView = tmpImageView;
    
    
    //点击图片
    UIImageView *tmpVideoImage = [[UIImageView alloc]initWithFrame:CGRectMake(88, 38, 32, 32)];
    //    tmpVideoImage.backgroundColor = [UIColor yellowColor];
    tmpVideoImage.image = [UIImage imageNamed:@"bofang.png"];
    [tmpImageView addSubview:tmpVideoImage];
    [tmpVideoImage release];
    self.VideoImage = tmpVideoImage;
    
    
    
    UILabel *tmptitleLabel = [[UILabel alloc]initWithFrame:CGRectMake(135, 10, 250, 20)];
    //    tmptitleLabel.backgroundColor = [UIColor yellowColor];
    tmptitleLabel.font = [UIFont systemFontOfSize:14];
    [self.contentView addSubview:tmptitleLabel];
    [tmptitleLabel release];
    self.titleLabel = tmptitleLabel;
    
    
    UILabel *tmpsumLabel = [[UILabel alloc]initWithFrame:CGRectMake(140, 40, 250, 20)];
    //    tmpsumLabel.backgroundColor = [UIColor yellowColor];
    tmpsumLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:tmpsumLabel];
    [tmpsumLabel release];
    self.sumLabel = tmpsumLabel;
}
-(void)buttonClicked:(UIButton *)button
{
    
}
- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}


@end
